/*
 * Copyright (C) ${year} Jeffrey Palm.
 *
 * This code is part of the Floto Project (http://jeffpalm.com/floto/).
 * Please consult the LICENSE included in the distribution.
 */
package com.jeffpalm.floto.isight.app;

import java.awt.Container;

/**
 * SHows errors and messages.
 */
public interface MessageShower {

  /**
   * Shows a message.
   * 
   * @msg message to show
   */
  void showMessage(String msg);

  /**
   * Shows an error
   * 
   * @msg error to show
   */
  void showError(String msg);

  /**
   * Shows a confirmation dialog and gets that information from the user.
   * 
   * @param p
   *          the guts of what to display
   * @param msg
   *          message to display
   * @param okCancelOption
   * @return
   */
  int showConfirm(Container p, String msg);

  /**
   * Returns an answer after showing a prompt for input.
   * 
   * @param msg
   *          prompt for input
   * @return an answer after showing a prompt for input.
   */
  String showInput(String msg);
}
